﻿using Dapper;
using RightControl.Common;
using RightControl.IRepository;
using RightControl.Model;
using System.Collections.Generic;
using System.Data;
using System.Text;
using RightControl.Repository;

namespace RightControl.Repository
{
    public class ShipRepository : BaseRepository<ShipTemplate>, IShipRepository {

        /// <summary>
        /// 获取有效菜单列表
        /// </summary>
        /// <param name="sql">sql语句</param>
        /// <returns></returns>
        public IEnumerable<ShipTemplate> GetTemplateList(string sql) {
            using (var conn = MySqlHelper.GetConnection()) {
                return conn.Query<ShipTemplate>(sql);
            }
        }
    }
}
